<%--
  Created by: Zed
  Date: 2017/7/7
  Time: 17:16
--%>
<html>
<head>
    <%@ include file="/WEB-INF/view/common/header.jsp"%>
    <%@ page contentType="text/html;charset=UTF-8" %>
    <title>资源管理</title>
    <link rel="Stylesheet" href="${ctx}/assets/plugins/bootstrap-table/bootstrap-table.css" />
    <script src="${ctx}/assets/plugins/bootstrap-table/bootstrap-table.js" type="text/javascript"></script>
    <script src="${ctx}/assets/js/system/resource.js" type="text/javascript"></script>
</head>
<body>
    <div class="row">
        <div class="col-lg-2" style="height: 100%">
        </div>
        <div class="col-lg-10" style="height: 100%; padding-right: 3rem">
            <div class="panel panel-default">
            <div class="panel-body">
                <form role="form" class="form-inline">
                    <div class="row">
                        <div class="col-lg-3">
                            <div class="form-group">
                                <label for="name">资源名称: </label>
                                <input type="text" class="form-control" id="name" name="name" />
                            </div>
                        </div>
                        <div class="col-lg-3">
                            <div class="form-group">
                                <label for="domain">资源编码: </label>
                                <input type="text" class="form-control" id="domain" name="domain"/>
                            </div>
                        </div>
                        <div class="col-lg-3">
                            <div class="form-group">
                                <label for="domain">资源类型: </label>
                                <input type="text" class="form-control" id="domain" name="domain"/>
                            </div>
                        </div>
                        <div class="col-lg-3">
                            <div class="form-group">
                                <label for="domain">资源层级: </label>
                                <input type="text" class="form-control" id="domain" name="domain"/>
                            </div>
                        </div>
                    </div>
                    <div  class="row" style="padding-top: 1rem" >
                        <div class="col-lg-offset-11 col-lg-1">
                            <button class="btn btn-primary">查询</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>

            <div class="panel panel-default">
            <div class="panel-body">
                <div id="resource_table"></div>
            </div>
        </div>
        </div>
    </div>

    <div id="toolbar">
        <button id="btn_add" type="button" class="btn btn-primary" onclick="addResource()">
            <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>新增
        </button>
        <button id="btn_delete" type="button" class="btn btn-primary">
            <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>删除
        </button>
    </div>

    <!-- Modal -->
    <div class="modal fade" id="resourceAddModal" tabindex="-1" role="dialog" aria-labelledby="resourceAddModal">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <%@ include file="/WEB-INF/view/system/addResource.jsp"%>
            </div>
        </div>
    </div>
</body>
</html>
